#pragma once

namespace kratos { namespace engine { namespace util {

// Signal handler
using SignalFunc = void(*)(int);
// Daemon process, UNIX like system ONLY
// @param sig_quit The handler for SIGQUIT
// @param sig_term The handler for SIGTERM
// @retval true
// @retval false fail
bool daemonize(SignalFunc sig_quit, SignalFunc sig_term);

}}}
